// import axios from 'axios'
// const instance = axios.create({
//   baseURL: 'http://toutiao-app.itheima.net'
// })
import instance from '../utils/request'
const userLogin = ({ mobile, code }) => {
  return instance({
    method: 'post',
    url: '/v1_0/authorizations',
    data: {
      mobile,
      code
    }
  })
}
export { userLogin }
